import { createApp } from 'vue';
import App from './App.vue';
import router from "./router";
import {createPinia} from "pinia";
import PiniaPluginPersistedstate from "pinia-plugin-persistedstate";
import "./assets/css/index.css" ;
import "animate.css";
import ElementPlus from "element-plus" ; 
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'


const app=createApp(App);
const pinia=createPinia();

app.provide("baseURL",baseURL);
app.use(pinia);
pinia.use(PiniaPluginPersistedstate);

import PageView from "@/components/PageView";
import GoodsSwiper from "./components/GoodsSwiper.vue";
app.component("page-view",PageView);
app.component("goods-swiper",GoodsSwiper);
app.use(ElementPlus,{
    locale: zhCn,
});
app.use(router);
app.mount('#app');
